package com.visikard.utility;

import java.text.DecimalFormat;

public class RoundNumber {

	private static final DecimalFormat threeDigit = new DecimalFormat("#,##0.000");

	public static double roundToThreeDigit(double paramFloat) {
		double f = (double) Double.valueOf(threeDigit.format(paramFloat)).doubleValue();
		f = f;
		return f;
	}
	
	private static final DecimalFormat secondDigit = new DecimalFormat("#,##0.00");

	public static double roundToSecondDigit(double paramFloat) {
		double f = (double) Double.valueOf(secondDigit.format(paramFloat)).doubleValue();
		f = f;
		return f;
	}
}
